CC=g++
CFLAGS=-c -Wall -g
LDFLAGS=-lcurses -lpython2.5
MODULES=interface.cc console.cc game.cc python.cc screen.cc
SOURCES=main.cc $(MODULES)
OBJECTS=$(SOURCES:.cc=.o)
HEADERS=$(MODULES:.cc=.h) includes.h
EXECUTABLE=client

all: $(SOURCES) $(HEADERS) $(EXECUTABLE)
	
$(EXECUTABLE): $(OBJECTS)
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@

.cc.o:
	$(CC) $(CFLAGS) $< -o $@

clean:
	rm -f $(OBJECTS) $(EXECUTABLE)
